package com.jwaoo.chat.session.avchat;

import android.view.WindowManager;

/**
 * Created by jwaoo on 2017/10/25.
 */

public class MyLayoutParam extends WindowManager.LayoutParams{
    Listener listener;
    public MyLayoutParam(){

    }

    public MyLayoutParam(Listener listener){
        this();
        this.listener = listener;
    }

    public void setHeight(int value){
        this.height = value;
//        this.listener.updateView();
    }

    public void setWidth(int value){
        this.width = value;
        this.listener.updateView();
    }

    public interface Listener{
       void updateView();
    }

    public void setAlpha(int value){
        this.alpha = value;
        this.listener.updateView();
    }
}
